package com.ljkj.lawyer.lawyer.dao;

import com.ljkj.lawyer.lawyer.entity.LawyerAddRecordEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface LawyerCodeDao extends JpaRepository<LawyerAddRecordEntity, Integer> {


    @Query(value = "select * from lawyer_add_record where member_id =?1 order by create_time desc",nativeQuery = true)
    Page<LawyerAddRecordEntity> getHashCodeListByMemberId(Integer memberId, Pageable pageable);


}
